package com.jiangyao.dao;

import com.jiangyao.model.dto.SubmitCourseQuestionDTO;
import com.jiangyao.model.dto.SubmitPublicCourseQuestionDTO;
import com.jiangyao.model.entity.UserAnswer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 答题 Mapper 接口
 * </p>
 *
 * @author lijing
 * @since 2020-09-03
 */
public interface IUserAnswerDao extends BaseMapper<UserAnswer> {

    Integer getMaxScore(@Param("userId") Integer userId, @Param("submitCourseQuestionDTO") SubmitCourseQuestionDTO submitCourseQuestionDTO);

    Integer getPublicMaxScore(@Param("userId") Integer userId, @Param("submitCourseQuestionDTO") SubmitPublicCourseQuestionDTO submitCourseQuestionDTO);

}
